package com.example.entity;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户信息登录实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginEntity {
    @NotNull
    private String username;
    @NotEmpty
    @Pattern(regexp = "^\\S{1,18}$")
    private String password;
    @NotEmpty
    private Integer permission;
}
